using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter25
{
	/// <summary>
	/// Example01: The Electric Field Between Two Parallel Plates of Opposite Charge. 
	/// A battery produces a specified potential difference \Delta V 
	/// between conductors attached to the battery terminals. 
	/// A 12-V battery is connected between two parallel plates, 
	/// as shown in Figure 25.5. The separation between the plates 
	/// is d = 0.30 cm, and we assume the electric field between 
	/// the plates to be uniform. (This assumption is reasonable 
	/// if the plate separation is small relative to the plate 
	/// dimensions and if we do not consider locations near 
	/// the plate edges.) Find the magnitude of the electric 
	/// field between the plates.
	/// E = 4.0 \times 10^3 V/m
	/// </summary>
	public class Example01
	{
		public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.ElectricPotentialDifference V = new L.ElectricPotentialDifference();
			V.V = 12.0;
			L.Length l = new L.Length();
			l.m = 0.003;
			L.ElectricField E = new L.ElectricField();
			E.X = V.V / l.m; 
			result+=Convert.ToString(E.VPERm);
		}	
	}
}
